import type { App } from 'vue'

/** 挂载到vue原型链上Prototype */
export default function setupVuePrototype(app: App) {
  console.log(process.env.NODE_ENV)

  // window.ApiDev.server = `${window.ApiDev.server}/rescuejcj-service/`
  // window.ApiDev.socketUrl = `${window.ApiDev.socketUrl}/rescuesocket-service/websocket/`
  app.config.globalProperties.$config =
    process.env.NODE_ENV === 'development' ? window.ApiDev : window.ApiProd
  window.app = app
}
